package entity

import ()

type Doc struct {
	Id int64 `gorm:"column:id;type:BIGINT;primary_key" json:"id"`

	Title string `gorm:"column:title;type:VARCHAR(255)" json:"title"`

	Url string `gorm:"column:url;type:VARCHAR(255)" json:"url"`

	Content string `gorm:"column:content;type:VARCHAR(255)" json:"content"`

	DocType int `gorm:"column:doc_type;type:TINYINT" json:"doc_type"`

	StoreType int `gorm:"column:store_type;type:TINYINT" json:"store_type"`

	CreatedAt int64 `gorm:"column:created_at;type:BIGINT" json:"created_at"`

	UpdatedAt int64 `gorm:"column:updated_at;type:BIGINT" json:"updated_at"`
}

func (a *Doc) TableName() string {
	return "docs"
}
